﻿@model NK.Mvc3.Models.ProductInfo

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ProductInfo</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Group)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Group)
            @Html.ValidationMessageFor(model => model.Group)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.GroupCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.GroupCode)
            @Html.ValidationMessageFor(model => model.GroupCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BarCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BarCode)
            @Html.ValidationMessageFor(model => model.BarCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SpecialBarCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SpecialBarCode)
            @Html.ValidationMessageFor(model => model.SpecialBarCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.POSDescription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.POSDescription)
            @Html.ValidationMessageFor(model => model.POSDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProductName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProductName)
            @Html.ValidationMessageFor(model => model.ProductName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PKT)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PKT)
            @Html.ValidationMessageFor(model => model.PKT)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Package)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Package)
            @Html.ValidationMessageFor(model => model.Package)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cost)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cost)
            @Html.ValidationMessageFor(model => model.Cost)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VAT)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VAT)
            @Html.ValidationMessageFor(model => model.VAT)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CostIncludeVAT)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CostIncludeVAT)
            @Html.ValidationMessageFor(model => model.CostIncludeVAT)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PriceA)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PriceA)
            @Html.ValidationMessageFor(model => model.PriceA)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PriceB)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PriceB)
            @Html.ValidationMessageFor(model => model.PriceB)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PriceC)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PriceC)
            @Html.ValidationMessageFor(model => model.PriceC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PriceD)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PriceD)
            @Html.ValidationMessageFor(model => model.PriceD)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsDeleted)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsDeleted)
            @Html.ValidationMessageFor(model => model.IsDeleted)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
